package com.k.kpp.dao;

import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CommonMapper {
    List<Map<String,Object>> executeSql(String sql);

    /**
     * and name like "%"#{name}"%"
     * mysql: and name like CONCAT('%','${name}','%' )
     * @param map
     * @return
     */
    List<Map<String,Object>> selectList(Map<String,Object> map);
}
